﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Collections.TreeCollections
{
    public abstract class TreeLeaf : TreeObject, INonRoot
    {
        #region Property
        public INonLeaf Parent
        {
            get { return _parent; }
            set { _parent = value; }
        }
        #endregion

        #region Fields
        INonLeaf _parent;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        public TreeLeaf(TreeNodeIdentify id)
            : base(id)
        {
        }

        #region Xml Parser
        /// <summary>
        /// Xml Parser
        /// </summary>
        /// <returns></returns>
        public override XElement ToXElem()
        {
            return base.ToXElem();
        }
        /// <summary>
        /// Xml Parser
        /// </summary>
        /// <param name="xelem"></param>
        /// <returns></returns>
        public static void XmlParser(XElement xelem, TreeRegisterClass treeRegister
            , TreeLeaf leaf)
        {
            // do nothing
        }
        #endregion
    }
}
